<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>

		<div class="width">
			<h1>
				<a href="/">Br.<i>EE</i></a>
			</h1>

			<h:form>
				<table border="0">
					<tr>
						<td><h:outputText
								value="Welcome, #{userSession.loggedInUser.firstName}" /></td>
						<td><p:themeSwitcher id="basic" style="width:165px">
								<f:selectItem itemLabel="Choose Theme*" itemValue="" />
								<f:selectItem itemValue="afterdark" itemLabel="afterdark" />
								<f:selectItem itemValue="afternoon" itemLabel="afternoon" />
								<f:selectItem itemValue="afterwork" itemLabel="afterwork" />
								<f:selectItem itemValue="aristo" itemLabel="aristo" />
								<f:selectItem itemValue="black-tie" itemLabel="black-tie" />
								<f:selectItem itemValue="blitzer" itemLabel="blitzer" />
								<f:selectItem itemValue="bluesky" itemLabel="bluesky" />
								<f:selectItem itemValue="bootstrap" itemLabel="bootstrap" />
								<f:selectItem itemValue="casablanca" itemLabel="casablanca" />
								<f:selectItem itemValue="cupertino" itemLabel="cupertino" />
								<f:selectItem itemValue="cruze" itemLabel="cruze" />
								<f:selectItem itemValue="dark-hive" itemLabel="dark-hive" />
								<f:selectItem itemValue="delta" itemLabel="delta" />
								<f:selectItem itemValue="dot-luv" itemLabel="dot-luv" />
								<f:selectItem itemValue="eggplant" itemLabel="eggplant" />
								<f:selectItem itemValue="excite-bike" itemLabel="excite-bike" />
								<f:selectItem itemValue="flick" itemLabel="flick" />
								<f:selectItem itemValue="glass-x" itemLabel="glass-x" />
								<f:selectItem itemValue="home" itemLabel="home" />
								<f:selectItem itemValue="hot-sneaks" itemLabel="hot-sneaks" />
								<f:selectItem itemValue="humanity" itemLabel="humanity" />
								<f:selectItem itemValue="le-frog" itemLabel="le-frog" />
								<f:selectItem itemValue="midnight" itemLabel="midnight" />
								<f:selectItem itemValue="mint-choc" itemLabel="mint-choc" />
								<f:selectItem itemValue="overcast" itemLabel="overcast" />
								<f:selectItem itemValue="pepper-grinder" itemLabel="pepper-grinder" />
								<f:selectItem itemValue="redmond" itemLabel="redmond" />
								<f:selectItem itemValue="rocket" itemLabel="rocket" />
								<f:selectItem itemValue="sam" itemLabel="sam" />
								<f:selectItem itemValue="smoothness" itemLabel="smoothness" />
								<f:selectItem itemValue="south-street" itemLabel="south-street" />
								<f:selectItem itemValue="start" itemLabel="start" />
								<f:selectItem itemValue="sunny" itemLabel="sunny" />
								<f:selectItem itemValue="swanky-purse" itemLabel="swanky-purse" />
								<f:selectItem itemValue="trontastic" itemLabel="trontastic" />
								<f:selectItem itemValue="ui-darkness" itemLabel="ui-darkness" />
								<f:selectItem itemValue="ui-lightness" itemLabel="ui-lightness" />
								<f:selectItem itemValue="vader" itemLabel="vader" />
							</p:themeSwitcher></td>
					</tr>
				</table>
				<p:menubar>
					<p:submenu label="Purchase Requisition" icon="ui-icon-document">
						<p:menuitem value="Open Items" action="/pr/main" />
						<p:menuitem value="For Approval" action="/pr/main">
							<f:param name="index" value="1" />
						</p:menuitem>
						<p:menuitem value="Approved" action="/pr/main">
							<f:param name="index" value="2" />
						</p:menuitem>
					</p:submenu>
					<p:menuitem value="Purchase Order" action="/po/main" />
					<p:menuitem value="Master List" action="/ml/main" />
					<p:menuitem value="Inventory" action="/inv/main" />
					<p:menuitem value="Admin" action="/admin/main" />
					<f:facet name="options">
						<h:commandButton action="#{userSession.logout}" value="Logout" />
					</f:facet>
				</p:menubar>
				<ui:remove>
					<ul class="sf-menu dropdown">
						<li class="#{menuDashboardClass}"><h:link value="Dashboard"
								outcome="/main" /></li>
						<li class="#{menuPurchaseRequisitionClass}"><h:link
								outcome="/pr/main" value="Purchase Requisition" /></li>
						<li class="#{menuPurchaseOrderClass}"><h:link
								outcome="/po/main" value="Purchase Order" /></li>
						<li class="#{menuWithdrawalClass}"><h:link outcome="/main"
								value="Withdrawal" /></li>
						<li class="#{menuMasterListClass}"><h:link outcome="/ml/main"
								value="Master List" /></li>
						<li class="#{menuInventoryClass}"><h:link outcome="/inv/main"
								value="Inventory" /></li>
						<li class="#{menuAdminClass}"><h:link outcome="/admin/main"
								value="Admin" /></li>
						<li>Welcome, #{mainBean.loggedInUser.firstName}</li>
						<li><h:commandButton styleClass="formbutton"
								action="#{userSession.logout}" value="Logout" /></li>
					</ul>
				</ui:remove>
			</h:form>

		</div>

		<div class="clear"></div>
	</ui:composition>
</body>
</html>